import request from '@/utils/request'

export function upload_action(fileNum) {
    return request({
        url: '/mall_biz/oss/info',
        method: 'get',
        params: { fileNum }
    })
}

export function upload_minio(url, file) {
    return request({
        headers: { 'Content-Type': file.type },
        url: url,
        method: 'put',
        data: file
    })
}
